package com.grts.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.github.pagehelper.page.PageMethod;
import com.grts.dao.MajorBeanMapper;
import com.grts.pojo.MajorBean;
import com.grts.service.IMajorService;
import com.grts.utils.PageModel;
@Service
public class MajorServiceImpl implements IMajorService {
	@Resource
	private MajorBeanMapper dao;
	@Override
	public int deleteByPrimaryKey(Integer mid) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(mid);
	}

	@Override
	public int insert(MajorBean record) {
		// TODO Auto-generated method stub
		return dao.insert(record);
	}

	@Override
	public int insertSelective(MajorBean record) {
		// TODO Auto-generated method stub
		return dao.insertSelective(record);
	}

	@Override
	public MajorBean selectByPrimaryKey(Integer mid) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(mid);
	}

	@Override
	public int updateByPrimaryKeySelective(MajorBean record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(MajorBean record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKey(record);
	}

	@Override
	public List<MajorBean> queryAll() {
		// TODO Auto-generated method stub
		return dao.queryAll();
	}

	@Override
	public List<MajorBean> queryByFatherid(Integer fatherid) {
		// TODO Auto-generated method stub
		return dao.queryByFatherid(fatherid);
	}

	@Override
	public List<MajorBean> queryByPage(PageModel page) {
		// TODO Auto-generated method stub
		return dao.queryByPage(page);
	}

	@Override
	public List<MajorBean> queryByName(String mname) {
		// TODO Auto-generated method stub
		return dao.queryByName(mname);
	}

	

}
